mkdir -p ./remote
cat remote_hosts.txt | while read MY_HOST
do
  echo "START ${MY_HOST}"
	mkdir -p ./remote/${MY_HOST}
  echo "  created ./remote/${MY_HOST}"
	cd ./remote/${MY_HOST}
  echo "  cwd=${PWD}"
	rm -f nohup.out
  echo "  removed nohup.out"
	nohup ant -Dremote.host=${MY_HOST} -f ../../build.xml run &
  echo "  ran ant with -Dremote.host=${MY_HOST}"
	cd ../..
  echo "  cwd=${PWD}"
  echo "FINISH ${MY_HOST}"
done
